package com.thz.system.pojo.blog.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

/**
 * @Description
 * @Author thz
 * @Date 2025/5/10
 */
@Setter
@Getter
public class UpdateBlogDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "博客id不能为空" )
    private Long blogId;
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "内容不能为空")
    private String content;
}